
#ifndef _MY_SHMEM_H_INCLUDED_
#define _MY_SHMEM_H_INCLUDED_


#include <my_config.h>
#include <my_core.h>


typedef struct {
    u_char      *addr;
    size_t       size;
    my_str_t    name;
    my_log_t   *log;
    my_uint_t   exists;   /* unsigned  exists:1;  */
} my_shm_t;


my_int_t my_shm_alloc(my_shm_t *shm);
void my_shm_free(my_shm_t *shm);


#endif /* _MY_SHMEM_H_INCLUDED_ */

